package com.nightwalkbuddy.dao;

import com.nightwalkbuddy.dto.User;

/**
 * interface class
 * @author Jones, Brandon
 */
public interface IUserDAO {
	/**
	 * Persist the given user.
	 * @param user the user to save
	 * @throws Exception any problem in the underlying persistence mechanism.
	 */
	public void save(User user) throws Exception;
	
	/**
	 * Fetch the user with the given name.
	 * @param username
	 * @return user 
	 * @throws Exception
	 */
	public User fetch(String username) throws Exception;

}
